<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
		<style type="text/css">
			*{
				margin: 0;
				padding: 0;
			}
			
			#box{
				width: 450px;
				height: 570px;
				border: 1px solid black;
				margin: 20px auto;
			}
			#setbox{
				overflow: hidden;
				
			}
			#time{
				float: left;
				font-size: 30px;
				margin-left: 10px;
				margin-top: 10px;
			}
			#finish{
				float: right;
				font-size: 30px;
				margin-right: 10px;
				margin-top: 10px;
			}
			#randombox{
				width: 100%;
				height:200px;
				text-align: center;
				margin-top: 160px;
			}
			#tishi{
				width: 80%;
				margin-left: 10%;
				height: 100px;
				font-size: 30px;
			}
			#randomwrite{
				width: 100px;
				font-size:100px;
				display: inline-block;
			}
			li{
				display: inline-block;
				font-size: 60px;
				margin-left: 20px;
			}
		</style>
	</head>
	<body>
		<!--重点是如何实现不同字体和颜色的随机
			知识点：数组
			随机数
		-->
		<div id="box">
			<div id="setbox">
			<p id="time">剩余时间：0</p>
			<p id="finish">完成：0</p>	
			</div>
			<div id="randombox"><p id="randomwrite">红</p></div>
			<p id="tishi">请根据上面字的颜色，选择下面相应的字</p>
			<ul>
				<li>红</li>
				<li>黄</li>
				<li>黑</li>
				<li>蓝</li>
				<li>绿</li>
			</ul>
		</div>
	</body>
	<script type="text/javascript">
		var time = document.getElementById("time");
		var finish = document.getElementById("finish");
		var randombigzi = document.getElementById("randomwrite");
		var RandomArray = document.getElementsByTagName("li");
		var fontArray = ["黄","红","黑","蓝","绿"];
		var colorArray = ["red","green","blue","yellow","black"];
		function randArray(){
			return parseInt(Math.random()*)
		}
	</script>
</html>
